package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.TurntableDO;
import com.iotechn.unimall.data.domain.UserDO;
import com.iotechn.unimall.data.dto.truntable.TurntableDayRewardDTO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


/**
 * 转盘表
 * 
 * @author chen
 * @email 1197346512@qq.com
 * @date 2021-09-06 16:19:17
 */
public interface TurntableMapper extends BaseMapper<TurntableDO> {

    List<TurntableDayRewardDTO> prizeOutput(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Integer turntableUsed(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<UserDO> turntableUser(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
